const Koa = require('koa')
const views = require('koa-views')
const common = require('./api/common')

const app = new Koa
const PORT = 3333

app.use(views(__dirname + '/views'))

app.use(common.routes())

app.listen(PORT, () => {
  console.log(`Server is running at port ${PORT}`)
})